import java.util.Arrays;
import java.util.Random;

public class three {
    public static void main(String[] args) {

        int[] arr = new int[7];


        Random r = new Random();
        int num;
        int[] arr1 = new int[7];

        for (int i = 0; i < 6; i++) {
            Arrays.sort(arr1);
            inner: while (true) {
                num = r.nextInt(33) + 1;
                if (Arrays.binarySearch(arr1, num) < 0) {
                    arr[i] = num;
                    arr1[i]=num;
                    break inner;
                }
            }
        }

        arr[6] = r.nextInt(16)+1;

        System.out.println(Arrays.toString(arr));
    }
}
